package com.yoosora.common.mode;

/**
 * @author yoosora
 */

public enum BasicError implements IError<Integer> {
	/**
	 * error枚举
	 */
	SYSTEM_ERROR(1000000, "系统异常"),
	ILLEGAL_REQUEST(1000001, "非法请求参数");

	Integer errcode;
	String errmsg;

	private BasicError(Integer errcode, String errmsg) {
		this.errcode = errcode;
		this.errmsg = errmsg;
	}

	@Override
	public Integer errcode() {
		return this.errcode;
	}

	@Override
	public String errmsg() {
		return this.errmsg;
	}
}
